#include <iostream>
#include <stdlib.h>
#include <unistd.h>

#include <Logger.h>
#include <BaseException.h>

using namespace std;

int main (int argc, char* argv[])
{
	try {
		Logger* log = Logger::getInstance();
		int i = 0;
		while(i <= 10){
			log->info("HOLAAA INFOOO !!");
			log->debug("HOLAAA DEBUGG !!");
			log->warn("HOLAAA WARNN !!");
			log->error("HOLAAA ERROR !!");
			i++;
		}
		std::cout << "testLogger: OK" << std::endl;

	} catch (const BaseException& e) {
		std::cerr << "testLogger: KO" << std::endl;
		std::cerr << e.what() << std::endl;
	}
}